<HTML><HEAD><TITLE>_AwaitingResponse</TITLE></HEAD>
<BODY>
<!#CLASSDEF
_AwaitingResponse
#ENDCLASSDEF>
<H1>_AwaitingResponse</H1>

<P>Instances of this class track pending requests.  They are managed by the Hub
in the sendRequest() method.  
<P>Public variables: 
<DL> <DT> <I>id</I> 
<DD> 
<P>The key that this object is stored under.  The same id as is used in the
matching Request and Response objects.  <P>
<DT> <I>response</I> 
<DD> 
<P>Allows us to store the response so that it can be returned to the caller.  <P>
<DT> <I>threaded</I> 
<DD> 
<P>A class level variable that is used to indicate whether we are using the
threaded model or not.  <P>

</DL>

<H2>Methods</H2>
<UL>
<LI><A HREF="#__init__(self,_id)">__init__(self, id)</A>
<LI><A HREF="#getResponse(self)">getResponse(self)</A>
<LI><A HREF="#responseReceived(self,_response)">responseReceived(self, response)</A>
</UL>
<A NAME="__init__">
<A NAME="__init__(self,_id)">
<H3>__init__(self, id)</H3>
<PRE>
   def __init__(self, id):
</PRE>

<P>Constructs a new instance using the given id.  
<A NAME="getResponse">
<A NAME="getResponse(self)">
<H3>getResponse(self)</H3>
<PRE>
   def getResponse(self):
</PRE>

<P>Waits for a response to be received and then returns it.  
<A NAME="responseReceived">
<A NAME="responseReceived(self,_response)">
<H3>responseReceived(self, response)</H3>
<PRE>
   def responseReceived(self, response):
</PRE>

<P>Used to indicate that a response has been received and to set the response
that was received.  Any threads waiting on getResponse() will continue.  
</BODY></HTML>
